package com.magic.gre.mvp.model;

import com.magic.gre.Api;
import com.magic.gre.mvp.contract.ActivityDetailsContract;
import com.noname.lib_base_java.mvp.BaseModelImpl;
import com.noname.lib_base_java.net.RtManager;
import com.noname.lib_base_java.util.L;

import io.reactivex.Observable;
import io.reactivex.Observer;
import okhttp3.ResponseBody;

/**
 * Author: Lmoumou
 * Date: 2019-01-10 09:45
 * 文件名: ActivityDetailsModelImpl
 * 描述:
 */
public class ActivityDetailsModelImpl extends BaseModelImpl implements ActivityDetailsContract.Model {
//    @Override
//    public void mActDetails(Observer<ResponseBody> observer, String activityId) {
//
//        Observable<ResponseBody> observable = RtManager.getInatance().createApi(Api.class).actDetail(activityId);
//
//        doHttp(observer,observable);
//    }

    @Override
    public void mActApply(Observer<ResponseBody> observer, String activityId,String wechatNum) {
        Observable<ResponseBody> observable = RtManager.getInatance().createApi(Api.class).actApply(activityId, wechatNum);
        doHttp(observer,observable);
    }
}
